package com.kgc.beanForm;

import io.swagger.models.auth.In;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class GoodsCarinfoForm {

    /**
     * 商品ID
     */
    @NotEmpty(message = "商品编号不能为空")
    private String goodsid;

    /**
     * 购买数量
     */
    @Min(value =1,message = "数量不能小于1")
    @NotNull(message = "数量不能为空")
    private Integer quantity;


    private Integer businessid;

}
